import React from 'react'
import {Link,Outlet} from "react-router-dom";
import "./children.less"
export default function Children() {
    return (
        <div className="children">
          <nav>
              <p>react router v6 嵌套路由</p>
             <div>
             <Link to="home1">home1</Link> |{" "}
              <Link to="home2">home2</Link>
             </div>
            </nav>
            <div className="outlet">
              <Outlet />
            </div>
        </div>
    )
}
